<%--
  Created by IntelliJ IDEA.
  User: lx
  Date: 2021-03-06
  Time: 20:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入bootstrap -->
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <!-- 引入JQuery  bootstrap.js-->
    <script src="/js/jquery-3.2.1.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
</head>
<body>
    <!-- 顶栏 -->
    <jsp:include page="top.jsp"></jsp:include>
    <!-- 中间主体 -->
    <div class="container" id="content">
        <div class="row">
            <jsp:include page="menu.jsp"></jsp:include>
            <div class="col-md-10">
                <div class="panel panel-default">
                    <div class="panel-title">
                        <ol class="breadcrumb breadcrumbReset">
                            <li><a href="/admin/userList">用户管理</a></li>
                            <li class="active">查看用户</li>
                        </ol>
                    </div>
                    <div class="panel-body">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <label for="userID" class="col-sm-2 control-label">编号</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static">${user.userID}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="userName" class="col-sm-2 control-label">姓名</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static">${user.userName}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="role" class="col-sm-2 control-label" name="role">角色</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static">${roleItem.roleName}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="cardNo" class="col-sm-2 control-label">身份证号</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static">${user.cardNo}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="phone" class="col-sm-2 control-label">电话号码</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static">${user.phone}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="gender" class="col-sm-2 control-label">性别</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static">${user.gender ? "女" : "男"}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="birthday" class="col-sm-2 control-label">出生日期</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static"><fmt:formatDate value="${user.birthday}" pattern="yyyy/MM/dd" /></p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="address" class="col-sm-2 control-label">地址</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static">${user.address}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="email" class="col-sm-2 control-label">邮箱</label>
                                <div class="col-sm-10">
                                    <p class="form-control-static">${user.email}</p>
                                </div>
                            </div>
                            <div class="form-group" style="text-align: center">
                                <button class="btn btn-primary" onclick="location.href='/admin/userList'">返回</button>
                            </div>
                        </form>
                    </div>

                </div>

            </div>
        </div>
    </div>
    <div class="container" id="footer">
        <div class="row">
            <div class="col-md-12"></div>
        </div>
    </div>
</body>
<script type="text/javascript">
    $("#nav li:nth-child(2)").addClass("active");
</script>
</html>
